package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.modular.system.model.PayResult;
import com.stylefeng.guns.modular.system.dao.PayResultMapper;
import com.stylefeng.guns.modular.system.service.IPayResultService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 支付结果 服务实现类
 * </p>
 *
 * @author kutty
 * @since 2018-09-25
 */
@Service
public class PayResultServiceImpl extends ServiceImpl<PayResultMapper, PayResult> implements IPayResultService {

    @Resource
    private PayResultMapper payResultMapper;

    public String getTotalPrice(@Param("account") String account) {
        return payResultMapper.getTotalPrice(account);
    }

    public Integer getSuccessNumByAccount(@Param("account") String account) {
        return payResultMapper.getSuccessNumByAccount(account);
    }

}
